package org.jeecg.modules.information.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: course_type
 * @Author: jeecg-boot
 * @Date:   2021-08-16
 * @Version: V1.0
 */
@Data
@TableName("course_type")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="course_type对象", description="course_type")
public class CourseType implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID,存UUID*/
	@TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键ID,存UUID")
    private String id;

	/**类型名称*/
	@Excel(name = "类型名称", width = 15)
    @ApiModelProperty(value = "类型名称")
    private String typeName;

	/**排序字段，数字越小排越前面*/
	@Excel(name = "排序字段，数字越小排越前面", width = 15)
    @ApiModelProperty(value = "排序字段，数字越小排越前面")
    private Integer typeOrder;

	/**Java代码自动生成，生成规则如一级分类：A01,A01下二级分类:A01A01,如第二个二级分类A01A02,如第二个一级分类A02,以此类推*/
	@Excel(name = "Java代码自动生成，生成规则如一级分类：A01,A01下二级分类:A01A01,如第二个二级分类A01A02,如第二个一级分类A02,以此类推", width = 15)
    @ApiModelProperty(value = "Java代码自动生成，生成规则如一级分类：A01,A01下二级分类:A01A01,如第二个二级分类A01A02,如第二个一级分类A02,以此类推")
    private String typeCode;

	/**上级分类id，一级分类默认为Null*/
	@Excel(name = "上级分类id，一级分类默认为Null", width = 15)
    @ApiModelProperty(value = "上级分类id，一级分类默认为Null")
    private String typeSuperiorId;

	/**是否存在子级*/
	@Excel(name = "是否存在子级", width = 15)
    @ApiModelProperty(value = "是否存在子级")
    private String typeChildren;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
